import * as echarts from 'echarts';

export default function initCharts(Dom){
    // 新建一个promise对象
    let newPromise = new Promise((resolve) => {
        resolve()
    })
    //然后异步执行echarts的初始化函数
    newPromise.then(() => {
        //	此dom为echarts图标展示dom
        echarts.init(Dom)
    })
}
